import pyautogui as p
#import pyperclip
#x=p.alert(text="极度危险的警告",title="warning",button=#"无视")
#print(x)
#x=p.confirm(text="一个亿和清华",title="人生的选择",buttons=["一个亿","清华","全部都要"])
#print(x)
#x=p.prompt(text="请输入账号",title="账号",default="请输入账号")
#print("账号是:",y)
#y=p.password(text="请输入密码",title="密码",default="",mask="*")
#print("密码是",y)
locations=p.locateCenterOnScreen("2.jpg",confidence=0.9)
p.click(locations.x,locations.y)